# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""
import docx

myDocument=docx.Document("散文名篇.docx")

# myText=myDocument.paragraphs[1].text
# myDocument.paragraphs[1].text=myDocument.paragraphs[2].text
# myDocument.paragraphs[2].text=myText

myDocument.paragraphs[1].text,myDocument.paragraphs[2].text=myDocument.paragraphs[2].text,myDocument.paragraphs[1].text


myDocument.save("02散文名篇.docx")